package com.platform.module.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.platform.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.platform.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import com.platform.common.core.domain.BaseEntity;

/**
 * 热量型号对象 base_calorimeter_type
 * 
 * @author xuwei
 * @date 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_calorimeter_type")
public class BaseCalorimeterType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型id */
    @TableId(type = IdType.AUTO)

    private Long typeId;

    /** 热量表型号 */
    @NotBlank(message = "热量表型号不能为空")
    @Excel(name = "热量表型号")
    private String typeName;

    /** 热量表类型 */
    @Excel(name = "热量表类型")
    private String typeModel;

    /** 热量表规格 */
    @Excel(name = "热量表规格")
    private String calorimeterSpec;

    /** 集控模式 */
    @Excel(name = "集控模式")
    private String calorimeterPattern;

    /** NB-IoT（0显示 1隐藏） */
    @Excel(name = "NB-IoT", readConverterExp = "0=显示,1=隐藏")
    private String calorimeterIot;

    /** 电信NB表（0显示 1隐藏） */
    @Excel(name = "电信NB表", readConverterExp = "0=显示,1=隐藏")
    private String calorimeterNb;

    /** 热单位 */
    @Excel(name = "热单位")
    private String calorimeterUnit;

    /** 流量范围 */
    @Excel(name = "流量范围")
    private String calorimeterFlow;

    /** 准确度等级 */
    @Excel(name = "准确度等级")
    private String calorimeterAccuracy;

    /** 温度范围 */
    @Excel(name = "温度范围")
    private String calorimeterTemp;

    /** 温差范围 */
    @Excel(name = "温差范围")
    private String calorimeterDiffer;

    /** 最大压力 */
    @Excel(name = "最大压力")
    private String calorimeterPress;

    /** 环境等级 */
    @Excel(name = "环境等级")
    private String calorimeterEnviron;

    /** 执行标准 */
    @Excel(name = "执行标准")
    private String calorimeterStandard;

    /** 许可证号 */
    @Excel(name = "许可证号")
    private String calorimeterPermit;

    /** 厂商id */
    @Excel(name = "厂商id")
    private Long factoryId;

    /** 通信协议 */
    @Excel(name = "通信协议")
    private String typeAgree;

    /** 删除标志（0正常1删除） */
    @TableLogic
    private String delFlag;
    /** 厂商对象 */
    @Excels({
            @Excel(name = "厂商名称", targetAttr = "factoryName", type = Excel.Type.EXPORT),
            @Excel(name = "厂商代码", targetAttr = "factoryCode", type = Excel.Type.EXPORT)
    })
    @TableField(exist = false)
    private BaseFactory factory;

    @Excel(name = "厂商名称", type = Excel.Type.IMPORT)
    @TableField(exist = false)
    private String factoryName;

    /** 热量表类型 */
    @Excels({
            @Excel(name = "热量表类型", targetAttr = "typeName", type = Excel.Type.EXPORT),
    })
    @TableField(exist = false)
    private BaseCalorimeterType calorimeterType;

    @TableField(exist = false)
    private Integer count;

}
